home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / exec / io.inc < prev    next >
Text File  |  1998-06-24  |  665b  |  43 lines

  1. include "inc/exec/ports.inc";
  2.  
  3. struct IORequest is
  4.   io_Message:Message;
  5.   io_Device:ulong;
  6.   io_Unit:ulong;
  7.   io_Command:uword;
  8.   io_Flags:ubyte;
  9.   io_Error:byte;
  10. ;
  11.  
  12. struct IOStdReq is
  13.   io_Message:Message;
  14.   io_Device:ulong;
  15.   io_Unit:ulong;
  16.   io_Command:uword;
  17.   io_Flags:ubyte;
  18.   io_Error:byte;
  19.   io_Actual:ulong;
  20.   io_Length:ulong;
  21.   io_Data:ulong;
  22.   io_Offset:ulong;
  23. ;
  24.  
  25. def DEV_BEGINIO = (-30);
  26. def DEV_ABORTIO = (-36);
  27.  
  28. def IOB_QUICK = 0;
  29. def IOF_QUICK = (1<<0);
  30.  
  31. def CMD_INVALID = 0;
  32. def CMD_RESET = 1;
  33. def CMD_READ = 2;
  34. def CMD_WRITE = 3;
  35. def CMD_UPDATE = 4;
  36. def CMD_CLEAR = 5;
  37. def CMD_STOP = 6;
  38. def CMD_START = 7;
  39. def CMD_FLUSH = 8;
  40.  
  41. def CMD_NONSTD = 9;
  42.  
  43.